package de.reichelt.fxrequi.data;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class Category {
  private final StringProperty name = new SimpleStringProperty();
  private final StringProperty descr = new SimpleStringProperty();

  public Category() {
  }

  public Category(String name, String descr) {
    setName(name);
    setDescr(descr);
  }

  public String getName() {
    return name.get();
  }

  public void setName(String value) {
    name.set(value);
  }

  public StringProperty nameProperty() {
    return name;
  }
  
  public String getDescr() {
    return descr.get();
  }

  public void setDescr(String value) {
    descr.set(value);
  }

  public StringProperty descrProperty() {
    return descr;
  }

  @Override
  public String toString() {
    return name.get();
  }
  
  
}
